﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Electure.DAL;

namespace Electure
{
    public partial class _Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (var rep = RepositoryFactory.GetNewsRepository())
            {
                newListControl.Content = rep.GetAll().Take(5).ToList();
            }
        }
    }
}